<?php
$cs=Yii::app()->clientScript;
$cs->registerScript('constraintMess',<<<END
alert('$error_mess');
END
);
?>